﻿using System;
using System.Windows.Forms;

namespace SimpleTerminal
{
    public partial class StartupControl : UserControl
    {
        public StartupControl()
        {
            InitializeComponent();
        }
        protected override void OnResize(EventArgs e)
        {
            base.OnResize(e);
            int x = (int)(0.5 * (this.Width - pictureBox1.Width));
            int y = (int)(0.5 * (this.Height - pictureBox1.Height));
            pictureBox1.Location = new System.Drawing.Point(x, y);
        }
    }
}
